package org.xt.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;

/**
 * 产出数据项
 * @author XiangTao
 *
 */
@Table("tb_output_item")
@PK({"machineId", "stationId", "itemId"})
public class OutputItem extends BaseTable{
	@Column
	private int machineId;
	@Column
	private int stationId;
	@Column
	private int itemId;
	
	@Column
	private double target;
	
	@Column
	private int opUserId; //添加数据用户ID
	@Column
	private int opTargetUserId; //更改target目标的用户
	@Column
	private int sort_station; //排序 type
	@Column
	private int sort_item; //排序  item
	@Column
	private int shift; //0 不分 1 分班别
	
	public int getMachineId() {
		return machineId;
	}
	public void setMachineId(int machineId) {
		this.machineId = machineId;
	}
	
	public int getStationId() {
		return stationId;
	}
	public void setStationId(int stationId) {
		this.stationId = stationId;
	}
	public int getItemId() {
		return itemId;
	}
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	public int getOpUserId() {
		return opUserId;
	}
	public void setOpUserId(int opUserId) {
		this.opUserId = opUserId;
	}
	public int getOpTargetUserId() {
		return opTargetUserId;
	}
	public void setOpTargetUserId(int opTargetUserId) {
		this.opTargetUserId = opTargetUserId;
	}
	public double getTarget() {
		return target;
	}
	public void setTarget(double target) {
		this.target = target;
	}
	
	
	public int getSort_station() {
		return sort_station;
	}
	public void setSort_station(int sort_station) {
		this.sort_station = sort_station;
	}
	public int getSort_item() {
		return sort_item;
	}
	public void setSort_item(int sort_item) {
		this.sort_item = sort_item;
	}
	public int getShift() {
		return shift;
	}
	public void setShift(int shift) {
		this.shift = shift;
	}
	@Override
	public String toString() {
		return "OutputItem [machineId=" + machineId + ", stationId=" + stationId + ", itemId=" + itemId + ", target=" + target
				+ ", opUserId=" + opUserId + ", opTargetUserId=" + opTargetUserId
				+ ", sort_station=" + sort_station + ", sort_item=" + sort_item + ", shift=" + shift + "]" + super.toString();
	}
	
}
